From 5217bcb24ceac2e7d441586edc56feba60b482a9 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Fri, 13 Sep 2024 00:26:08 +0000 Subject: Refactor Pagination component to update page size in getStaticPaths --- src/pages/[...page].astro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pages/[...page].astro') diff --git a/src/pages/[...page].astro b/src/pages/[...page].astro index 2a6f5cc..42f84b3 100644 --- a/src/pages/[...page].astro +++ b/src/pages/[...page].astro @@ -12,7 +12,7 @@ export const getStaticPaths = (async ({ paginate }) => { posts.sort((a, b) => b.data.pubDate.getTime() - a.data.pubDate.getTime()); return paginate(posts, { - pageSize: 5, + pageSize: 10, }); }) satisfies GetStaticPaths; -- cgit v1.2.3